﻿using System;
using System.Collections.Generic;
using BlobNet.Base;
using BlobNet.Base.Collections;
using BlobNet.Base.DataProviders;
using BlobNet.Base.Storage;

namespace BlobNet.TestsCommon.UnitTests.Dummy
{
    [Serializable]
    public class DummyBlobDomainHolder : BlobDomain
    {
        //TODO:USE MOCKS

        public DummyBlobDomainHolder(Guid entityId)
            : base(entityId)
        {
        }

        public DummyBlobDomainHolder(Guid entityId, IStorageManagerFactory factory)
            : base(entityId, factory, true)
        {
        }

        public DummyBlobDomainHolder()
            : base(Guid.NewGuid())
        {
        }

        public BlobList<DummyBlobPart> CollectionProperty
        {
            get { return GetStatusValue<BlobList<DummyBlobPart>>("CollectionProperty"); }
            set { SetStatusValue("CollectionProperty",value); }
        }
    }
}